package ru.niir.goodfil.audit.domain;

import ru.niir.goodfil.audit.domain.enums.OrderUIEventType;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;

/**
 * События, связанные с созданием/оформлением/согласованием заказа (на уровне UI).
 */
@Entity
public class OrderUIEvent extends Event {
    @Enumerated(EnumType.STRING)
    private OrderUIEventType type;

    @Column(length = 10)
    private String orderId;

    @Column(length = 10)
    private String clientId;

    @Column(length = 100)
    private String clientName;

    @Column(length = 10)
    private String managerId;

    @Column(length = 100)
    private String managerName;

    @Column(length = 10)
    private String c1Num;

    @Column(length = 50)
    private String creationDate;

    @Column(length = 50)
    private String deliveryDate;

    @Column(length = 500)
    private String orderComment;

    @Column(length = 50)
    private String orderSum;

    public OrderUIEventType getType() {
        return type;
    }

    public void setType(OrderUIEventType type) {
        this.type = type;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getClientId() {
        return clientId;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    public String getClientName() {
        return clientName;
    }

    public void setClientName(String clientName) {
        this.clientName = clientName;
    }

    public String getManagerId() {
        return managerId;
    }

    public void setManagerId(String managerId) {
        this.managerId = managerId;
    }

    public String getManagerName() {
        return managerName;
    }

    public void setManagerName(String managerName) {
        this.managerName = managerName;
    }

    public String getC1Num() {
        return c1Num;
    }

    public void setC1Num(String c1Num) {
        this.c1Num = c1Num;
    }

    public String getCreationDate() {
        return creationDate;
    }

    public void setCreationDate(String creationDate) {
        this.creationDate = creationDate;
    }

    public String getDeliveryDate() {
        return deliveryDate;
    }

    public void setDeliveryDate(String deliveryDate) {
        this.deliveryDate = deliveryDate;
    }

    public String getOrderComment() {
        return orderComment;
    }

    public void setOrderComment(String orderComment) {
        this.orderComment = orderComment;
    }

    public String getOrderSum() {
        return orderSum;
    }

    public void setOrderSum(String orderSum) {
        this.orderSum = orderSum;
    }
}
